#include "mybetweendialog.h"
#include "ui_mybetweendialog.h"

MybetweenDialog::MybetweenDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::MybetweenDialog)
{
    ui->setupUi(this);

    //关联确定，取消按钮与对话框关闭
    connect(ui->ok, &QPushButton::clicked, this, &MybetweenDialog::accept);
    connect(ui->cancel, &QPushButton::clicked, this, &MybetweenDialog::reject);
}

void MybetweenDialog::on_ok_clicked()
{
    double min = ui->edit_min->text().toDouble();
    double max = ui->edit_max->text().toDouble();
    emit ok_clicked(min, max);
}

MybetweenDialog::~MybetweenDialog()
{
    delete ui;
}
